package com.hualude.roadsign.dto;

import com.hualude.roadsign.model.MachineFaultEntity;

/**
 * Created by pjn on 2017/7/22.
 */
//信号机故障dto
public class SignalMachineFaultDto {
    private Integer machineFaultId;
    private Integer signalMachineId;
    private Integer machineLevel;
    private String machinePhoto;
    private Integer machineType;
    private String machineReason;
    private Integer machineCreatorId;
    private String machineCreatorName;
    private String machineCreatorPhone;
    private String machineTime;
    private Integer machineCheckerId;
    private String machineCheckTime;
    private Integer machineCheck;
    private Integer machineMainCheckerId;
    private String machineMainCheckTime;
    private Integer machineMainCheck;
    private String machineFeedback;
    private Double machineMoney;
    private Integer machineOrgId;
    private String machineOrgName;
    private Integer machineMainOrgId;
    private String machineMainOrgName;

    private String signalMachineLongitude;
    private String signalMachineLatitude;
    private String signalMachineProvince;
    private String signalMachineCity;
    private String signalMachineArea;
    private String signalMachineStartRoad;
    private String signalMachineEndRoad;
    private Integer signalMachineType;
    private String signalMachineBrand;
    private String signalMachineNumber;
    private Integer signalMachineIsAlarm;
    private String signalMachinePhoto;
    private String signalMachineInstallTime;
    private String signalMachineInstallOrg;
    private Integer signalMachinePeriod;
    private Integer signalMachineServiceLife;
    private String signalMachineRemark;
    private Integer signalMachineCreatorId;
    private Integer signalMachineModifierId;
    private Integer signalMachineOrgId;
    private Integer signalMachineMainOrgId;
    private Integer signalMachineIsComplete;
    private Integer signalMachineRegionId;

    private Integer machineMaintainerId;
    private String machineMaintenancePhoto;
    private String machineMaintenanceContent;
    private String machineMaintenanceExplain;
    private Integer machineMaintenanceStatus;
    private String machineMaintenanceTime;
    private String machineADeviceId;


    public SignalMachineFaultDto() {
    }

    public SignalMachineFaultDto(Integer machineLevel, String machinePhoto, Integer machineType, String machineReason, Integer machineCreatorId, String machineTime, Integer machineCheck, Integer machineMainCheck, String machineFeedback, Double machineMoney) {
        this.machineLevel = machineLevel;
        this.machinePhoto = machinePhoto;
        this.machineType = machineType;
        this.machineReason = machineReason;
        this.machineCreatorId = machineCreatorId;
        this.machineTime = machineTime;
        this.machineCheck = machineCheck;
        this.machineMainCheck = machineMainCheck;
        this.machineFeedback = machineFeedback;
        this.machineMoney = machineMoney;
    }

    public SignalMachineFaultDto(Integer signalMachineId, String signalMachineLongitude, String signalMachineLatitude, String signalMachineProvince, String signalMachineCity, String signalMachineArea, String signalMachineStartRoad, String signalMachineEndRoad, Integer signalMachineType, Integer signalMachineIsAlarm, String signalMachinePhoto, String signalMachineInstallOrg, Integer signalMachineCreatorId, Integer signalMachineOrgId, Integer signalMachineMainOrgId) {
        this.signalMachineId = signalMachineId;
        this.signalMachineLongitude = signalMachineLongitude;
        this.signalMachineLatitude = signalMachineLatitude;
        this.signalMachineProvince = signalMachineProvince;
        this.signalMachineCity = signalMachineCity;
        this.signalMachineArea = signalMachineArea;
        this.signalMachineStartRoad = signalMachineStartRoad;
        this.signalMachineEndRoad = signalMachineEndRoad;
        this.signalMachineType = signalMachineType;
        this.signalMachineIsAlarm = signalMachineIsAlarm;
        this.signalMachinePhoto = signalMachinePhoto;
        this.signalMachineInstallOrg = signalMachineInstallOrg;
        this.signalMachineCreatorId = signalMachineCreatorId;
        this.signalMachineOrgId = signalMachineOrgId;
        this.signalMachineMainOrgId = signalMachineMainOrgId;
    }

    public SignalMachineFaultDto(Integer machineCheck,Integer machineMainCheck,Integer machineMaintenanceStatus){
        this.machineCheck = machineCheck;
        this.machineMainCheck = machineMainCheck;
        this.machineMaintenanceStatus = machineMaintenanceStatus;
    }

    public SignalMachineFaultDto(Integer signalMachineId, Integer machineLevel, String machinePhoto, Integer machineType, String machineReason, String machineMainCheckTime, String signalMachineLongitude, String signalMachineLatitude, String signalMachineProvince, String signalMachineCity, String signalMachineArea, String signalMachineStartRoad, String signalMachineEndRoad, String machineMaintenancePhoto, String machineMaintenanceContent, String machineMaintenanceExplain, String machineMaintenanceTime) {
        this.signalMachineId = signalMachineId;
        this.machineLevel = machineLevel;
        this.machinePhoto = machinePhoto;
        this.machineType = machineType;
        this.machineReason = machineReason;
        this.machineMainCheckTime = machineMainCheckTime;
        this.signalMachineLongitude = signalMachineLongitude;
        this.signalMachineLatitude = signalMachineLatitude;
        this.signalMachineProvince = signalMachineProvince;
        this.signalMachineCity = signalMachineCity;
        this.signalMachineArea = signalMachineArea;
        this.signalMachineStartRoad = signalMachineStartRoad;
        this.signalMachineEndRoad = signalMachineEndRoad;
        this.machineMaintenancePhoto = machineMaintenancePhoto;
        this.machineMaintenanceContent = machineMaintenanceContent;
        this.machineMaintenanceExplain = machineMaintenanceExplain;
        this.machineMaintenanceTime = machineMaintenanceTime;
    }

    public SignalMachineFaultDto(Integer signalMachineId, Integer machineLevel, String machinePhoto, Integer machineType, String machineReason, String machineMainCheckTime, String signalMachineLongitude, String signalMachineLatitude, String signalMachineProvince, String signalMachineCity, String signalMachineArea, String signalMachineStartRoad, String signalMachineEndRoad, String machineMaintenancePhoto, String machineMaintenanceContent, String machineMaintenanceExplain, String machineMaintenanceTime,String machineFeedback) {
        this.signalMachineId = signalMachineId;
        this.machineLevel = machineLevel;
        this.machinePhoto = machinePhoto;
        this.machineType = machineType;
        this.machineReason = machineReason;
        this.machineMainCheckTime = machineMainCheckTime;
        this.signalMachineLongitude = signalMachineLongitude;
        this.signalMachineLatitude = signalMachineLatitude;
        this.signalMachineProvince = signalMachineProvince;
        this.signalMachineCity = signalMachineCity;
        this.signalMachineArea = signalMachineArea;
        this.signalMachineStartRoad = signalMachineStartRoad;
        this.signalMachineEndRoad = signalMachineEndRoad;
        this.machineMaintenancePhoto = machineMaintenancePhoto;
        this.machineMaintenanceContent = machineMaintenanceContent;
        this.machineMaintenanceExplain = machineMaintenanceExplain;
        this.machineMaintenanceTime = machineMaintenanceTime;
        this.machineFeedback = machineFeedback;
    }

    public SignalMachineFaultDto(Integer signalMachineId, Integer machineType, Integer machineOrgId, Integer machineMainOrgId) {
        this.signalMachineId = signalMachineId;
        this.machineType = machineType;
        this.machineOrgId = machineOrgId;
        this.machineMainOrgId = machineMainOrgId;
    }

    public String getMachineCreatorPhone() {
        return machineCreatorPhone;
    }

    public void setMachineCreatorPhone(String machineCreatorPhone) {
        this.machineCreatorPhone = machineCreatorPhone;
    }

    public String getMachineCreatorName() {
        return machineCreatorName;
    }

    public void setMachineCreatorName(String machineCreatorName) {
        this.machineCreatorName = machineCreatorName;
    }

    public Integer getMachineOrgId() {
        return machineOrgId;
    }

    public void setMachineOrgId(Integer machineOrgId) {
        this.machineOrgId = machineOrgId;
    }

    public String getMachineOrgName() {
        return machineOrgName;
    }

    public void setMachineOrgName(String machineOrgName) {
        this.machineOrgName = machineOrgName;
    }

    public String getMachineMainOrgName() {
        return machineMainOrgName;
    }

    public void setMachineMainOrgName(String machineMainOrgName) {
        this.machineMainOrgName = machineMainOrgName;
    }

    public Integer getMachineFaultId() {
        return machineFaultId;
    }

    public void setMachineFaultId(Integer machineFaultId) {
        this.machineFaultId = machineFaultId;
    }

    public Integer getSignalMachineId() {
        return signalMachineId;
    }

    public void setSignalMachineId(Integer signalMachineId) {
        this.signalMachineId = signalMachineId;
    }

    public Integer getMachineLevel() {
        return machineLevel;
    }

    public void setMachineLevel(Integer machineLevel) {
        this.machineLevel = machineLevel;
    }

    public String getMachinePhoto() {
        return machinePhoto;
    }

    public void setMachinePhoto(String machinePhoto) {
        this.machinePhoto = machinePhoto;
    }

    public Integer getMachineType() {
        return machineType;
    }

    public void setMachineType(Integer machineType) {
        this.machineType = machineType;
    }

    public String getMachineReason() {
        return machineReason;
    }

    public void setMachineReason(String machineReason) {
        this.machineReason = machineReason;
    }

    public Integer getMachineCreatorId() {
        return machineCreatorId;
    }

    public void setMachineCreatorId(Integer machineCreatorId) {
        this.machineCreatorId = machineCreatorId;
    }

    public String getMachineTime() {
        return machineTime;
    }

    public void setMachineTime(String machineTime) {
        this.machineTime = machineTime;
    }

    public Integer getMachineCheckerId() {
        return machineCheckerId;
    }

    public void setMachineCheckerId(Integer machineCheckerId) {
        this.machineCheckerId = machineCheckerId;
    }

    public String getMachineCheckTime() {
        return machineCheckTime;
    }

    public void setMachineCheckTime(String machineCheckTime) {
        this.machineCheckTime = machineCheckTime;
    }

    public Integer getMachineCheck() {
        return machineCheck;
    }

    public void setMachineCheck(Integer machineCheck) {
        this.machineCheck = machineCheck;
    }

    public Integer getMachineMainCheckerId() {
        return machineMainCheckerId;
    }

    public void setMachineMainCheckerId(Integer machineMainCheckerId) {
        this.machineMainCheckerId = machineMainCheckerId;
    }

    public String getMachineMainCheckTime() {
        return machineMainCheckTime;
    }

    public void setMachineMainCheckTime(String machineMainCheckTime) {
        this.machineMainCheckTime = machineMainCheckTime;
    }

    public Integer getMachineMainCheck() {
        return machineMainCheck;
    }

    public void setMachineMainCheck(Integer machineMainCheck) {
        this.machineMainCheck = machineMainCheck;
    }

    public String getMachineFeedback() {
        return machineFeedback;
    }

    public void setMachineFeedback(String machineFeedback) {
        this.machineFeedback = machineFeedback;
    }

    public Double getMachineMoney() {
        return machineMoney;
    }

    public void setMachineMoney(Double machineMoney) {
        this.machineMoney = machineMoney;
    }

    public Integer getMachineMainOrgId() {
        return machineMainOrgId;
    }

    public void setMachineMainOrgId(Integer machineMainOrgId) {
        this.machineMainOrgId = machineMainOrgId;
    }

    public String getSignalMachineLongitude() {
        return signalMachineLongitude;
    }

    public void setSignalMachineLongitude(String signalMachineLongitude) {
        this.signalMachineLongitude = signalMachineLongitude;
    }

    public String getSignalMachineLatitude() {
        return signalMachineLatitude;
    }

    public void setSignalMachineLatitude(String signalMachineLatitude) {
        this.signalMachineLatitude = signalMachineLatitude;
    }

    public String getSignalMachineProvince() {
        return signalMachineProvince;
    }

    public void setSignalMachineProvince(String signalMachineProvince) {
        this.signalMachineProvince = signalMachineProvince;
    }

    public String getSignalMachineCity() {
        return signalMachineCity;
    }

    public void setSignalMachineCity(String signalMachineCity) {
        this.signalMachineCity = signalMachineCity;
    }

    public String getSignalMachineArea() {
        return signalMachineArea;
    }

    public void setSignalMachineArea(String signalMachineArea) {
        this.signalMachineArea = signalMachineArea;
    }

    public String getSignalMachineStartRoad() {
        return signalMachineStartRoad;
    }

    public void setSignalMachineStartRoad(String signalMachineStartRoad) {
        this.signalMachineStartRoad = signalMachineStartRoad;
    }

    public String getSignalMachineEndRoad() {
        return signalMachineEndRoad;
    }

    public void setSignalMachineEndRoad(String signalMachineEndRoad) {
        this.signalMachineEndRoad = signalMachineEndRoad;
    }

    public Integer getSignalMachineType() {
        return signalMachineType;
    }

    public void setSignalMachineType(Integer signalMachineType) {
        this.signalMachineType = signalMachineType;
    }

    public String getSignalMachineBrand() {
        return signalMachineBrand;
    }

    public void setSignalMachineBrand(String signalMachineBrand) {
        this.signalMachineBrand = signalMachineBrand;
    }

    public String getSignalMachineNumber() {
        return signalMachineNumber;
    }

    public void setSignalMachineNumber(String signalMachineNumber) {
        this.signalMachineNumber = signalMachineNumber;
    }

    public Integer getSignalMachineIsAlarm() {
        return signalMachineIsAlarm;
    }

    public void setSignalMachineIsAlarm(Integer signalMachineIsAlarm) {
        this.signalMachineIsAlarm = signalMachineIsAlarm;
    }

    public String getSignalMachinePhoto() {
        return signalMachinePhoto;
    }

    public void setSignalMachinePhoto(String signalMachinePhoto) {
        this.signalMachinePhoto = signalMachinePhoto;
    }

    public String getSignalMachineInstallTime() {
        return signalMachineInstallTime;
    }

    public void setSignalMachineInstallTime(String signalMachineInstallTime) {
        this.signalMachineInstallTime = signalMachineInstallTime;
    }

    public String getSignalMachineInstallOrg() {
        return signalMachineInstallOrg;
    }

    public void setSignalMachineInstallOrg(String signalMachineInstallOrg) {
        this.signalMachineInstallOrg = signalMachineInstallOrg;
    }

    public Integer getSignalMachinePeriod() {
        return signalMachinePeriod;
    }

    public void setSignalMachinePeriod(Integer signalMachinePeriod) {
        this.signalMachinePeriod = signalMachinePeriod;
    }

    public Integer getSignalMachineServiceLife() {
        return signalMachineServiceLife;
    }

    public void setSignalMachineServiceLife(Integer signalMachineServiceLife) {
        this.signalMachineServiceLife = signalMachineServiceLife;
    }

    public String getSignalMachineRemark() {
        return signalMachineRemark;
    }

    public void setSignalMachineRemark(String signalMachineRemark) {
        this.signalMachineRemark = signalMachineRemark;
    }

    public Integer getSignalMachineCreatorId() {
        return signalMachineCreatorId;
    }

    public void setSignalMachineCreatorId(Integer signalMachineCreatorId) {
        this.signalMachineCreatorId = signalMachineCreatorId;
    }

    public Integer getSignalMachineModifierId() {
        return signalMachineModifierId;
    }

    public void setSignalMachineModifierId(Integer signalMachineModifierId) {
        this.signalMachineModifierId = signalMachineModifierId;
    }

    public Integer getSignalMachineOrgId() {
        return signalMachineOrgId;
    }

    public void setSignalMachineOrgId(Integer signalMachineOrgId) {
        this.signalMachineOrgId = signalMachineOrgId;
    }

    public Integer getSignalMachineMainOrgId() {
        return signalMachineMainOrgId;
    }

    public void setSignalMachineMainOrgId(Integer signalMachineMainOrgId) {
        this.signalMachineMainOrgId = signalMachineMainOrgId;
    }

    public Integer getSignalMachineIsComplete() {
        return signalMachineIsComplete;
    }

    public void setSignalMachineIsComplete(Integer signalMachineIsComplete) {
        this.signalMachineIsComplete = signalMachineIsComplete;
    }

    public Integer getSignalMachineRegionId() {
        return signalMachineRegionId;
    }

    public void setSignalMachineRegionId(Integer signalMachineRegionId) {
        this.signalMachineRegionId = signalMachineRegionId;
    }

    public Integer getMachineMaintainerId() {
        return machineMaintainerId;
    }

    public void setMachineMaintainerId(Integer machineMaintainerId) {
        this.machineMaintainerId = machineMaintainerId;
    }

    public String getMachineMaintenancePhoto() {
        return machineMaintenancePhoto;
    }

    public void setMachineMaintenancePhoto(String machineMaintenancePhoto) {
        this.machineMaintenancePhoto = machineMaintenancePhoto;
    }

    public String getMachineMaintenanceContent() {
        return machineMaintenanceContent;
    }

    public void setMachineMaintenanceContent(String machineMaintenanceContent) {
        this.machineMaintenanceContent = machineMaintenanceContent;
    }

    public String getMachineMaintenanceExplain() {
        return machineMaintenanceExplain;
    }

    public void setMachineMaintenanceExplain(String machineMaintenanceExplain) {
        this.machineMaintenanceExplain = machineMaintenanceExplain;
    }

    public Integer getMachineMaintenanceStatus() {
        return machineMaintenanceStatus;
    }

    public void setMachineMaintenanceStatus(Integer machineMaintenanceStatus) {
        this.machineMaintenanceStatus = machineMaintenanceStatus;
    }

    public String getMachineMaintenanceTime() {
        return machineMaintenanceTime;
    }

    public void setMachineMaintenanceTime(String machineMaintenanceTime) {
        this.machineMaintenanceTime = machineMaintenanceTime;
    }

    public String getMachineADeviceId() {
        return machineADeviceId;
    }

    public void setMachineADeviceId(String machineADeviceId) {
        this.machineADeviceId = machineADeviceId;
    }

    public MachineFaultEntity toBean() {
        MachineFaultEntity machineFaultEntity = new MachineFaultEntity();
        machineFaultEntity.setMachineReason(machineReason);
        machineFaultEntity.setMachineType(machineType);
        machineFaultEntity.setMachinePhoto(machinePhoto);
        machineFaultEntity.setMachineLevel(machineLevel);
        machineFaultEntity.setMachineOrgId(machineOrgId);
        machineFaultEntity.setMachineCheck(0);
        machineFaultEntity.setMachineMainOrgId(machineMainOrgId);
        machineFaultEntity.setMachineMainCheck(0);
        machineFaultEntity.setSignalMachineId(signalMachineId);
        machineFaultEntity.setMachineCreatorId(machineCreatorId);
        machineFaultEntity.setMachineTime(machineTime);
        machineFaultEntity.setMachineMoney(machineMoney);
        machineFaultEntity.setMachineMaintenanceStatus(0);
        machineFaultEntity.setMachineADeviceId(machineADeviceId);
        return machineFaultEntity;
    }
}
